﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using BUS;

namespace Presentation
{
    public partial class Presentation : Form
    {
        public Presentation()
        {
            InitializeComponent();
        }

        private void Presentation_Load(object sender, EventArgs e)
        {
           
        }

        private void mônHọcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLMonHoc formMH = new QLMonHoc();
            formMH.MdiParent = this;
            formMH.Show();
        }

        private void họcSinhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLHocSinh qlhs = new QLHocSinh();
            qlhs.MdiParent = this;
            qlhs.Show();
        }

        private void bảngĐiểmToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLBangDiemMonHoc qlbd = new QLBangDiemMonHoc();
            qlbd.MdiParent = this;
            qlbd.Show();
        }

        private void khốiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLKhoi qlkhoi = new QLKhoi();
            qlkhoi.MdiParent = this;
            qlkhoi.Show();
        }

        private void lớpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLLop qllop = new QLLop();
            qllop.MdiParent = this;
            qllop.Show();
        }

        private void trợGiúpToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            Help.ShowHelp(Parent, "dsnhom.chm");
        }

        private void thoátToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            DialogResult confirm = MessageBox.Show("Xác nhận rằng bạn muốn kết thúc chương trình.", "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
            if (confirm == DialogResult.Yes)
            {
                this.Close();
            }
        }

        private void hồSơHọcSinhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HoSoHocSinh hs = new HoSoHocSinh();
            hs.MdiParent = this;            
            hs.Show();
        }

        private void danhSáchLớpToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            DanhSachLop lop = new DanhSachLop();
            lop.MdiParent = this;
            lop.Show();
        }

        private void bảngĐiểmMônHọcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RPBangDiemMonhoc rpdiem = new RPBangDiemMonhoc();
            rpdiem.MdiParent = this;
            rpdiem.Show();
        }

        private void danhSáchHọcSinhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DanhSachHocSinh dshs = new DanhSachHocSinh();
            dshs.MdiParent = this;
            dshs.Show();
        }

        private void tổngKếtMônToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RPTongKetMon tkmon = new RPTongKetMon();
            tkmon.MdiParent = this;
            tkmon.Show();
        }

        private void tổngKếtHọcKỳToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RPTongKetHocKy tkhocky = new RPTongKetHocKy();
            tkhocky.MdiParent = this;
            tkhocky.Show();
        }

        private void quyĐịnhToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            QuyDinh qd = new QuyDinh();
            qd.MdiParent = this;
            qd.Show();
        }
    }
}
